package com.vend.vendproject
import android.content.Intent
import android.os.Bundle
import com.alibaba.android.arouter.launcher.ARouter
import com.vend.common.base.BaseActivity
import com.vend.common.constant.RouterConstant
import com.vend.common.mvp.IPresenter
import com.vend.user.home.UserHomeActivity
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : BaseActivity<IPresenter>() {
    override fun getContentLayoutId(): Int {
        return R.layout.activity_main
    }

    override fun initView(savedInstanceState: Bundle?) {
        tv_en.setOnClickListener {
            ARouter.getInstance().build( RouterConstant.MAIN_HOME).navigation()
        }
        tv_en_two.setOnClickListener {
//            startActivity(Intent(this,UserHomeActivity::class.java))
            ARouter.getInstance().build(RouterConstant.USER_LOGIN_ACTIVITY).navigation()
        }
        tv_trade.setOnClickListener {
            ARouter.getInstance().build(RouterConstant.TRAD_LIST_ACTIVITY).navigation()
        }
    }
}